<template>
  <div>
    <el-row>
      <el-col :span="6">用户账号</el-col>
      <el-col :span="18">{{ $userInfo.userName }}</el-col>
    </el-row>
    <el-row>
      <el-col :span="6">用户类型</el-col>
      <el-col :span="18">{{ $userInfo.userType }}</el-col>
    </el-row>
    <el-row>
      <el-col :span="6">用户状态</el-col>
      <el-col :span="18">
        <el-select v-model="$userInfo.state" placeholder="请选择">
          <el-option label="未激活" :value="0"> </el-option>
          <el-option label="激活" :value="1"> </el-option>
        </el-select>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="6">用户绑定</el-col>
      <el-col :span="18">
        <el-select v-model="$userInfo.binding" placeholder="请选择" disabled>
          <el-option label="未绑定" :value="0"> </el-option>
          <el-option label="绑定" :value="1"> </el-option>
        </el-select>
      </el-col>
      
    </el-row>
    <el-row>
        <el-col :span="6">用户密码</el-col>
        <el-col :span="6">XXXXXXXX</el-col>
        <el-col :span="12">
          <el-button type="danger">修改密码</el-button>
          </el-col>
      </el-row>
  </div>
</template>

<script>
import { mapState } from "vuex";

export default {
  computed: {
    ...mapState(["$userInfo"]),
  },
  created() {
    //   this.$router.push("/") //path,对象
    //   this.$router.push({path:'/'})
    //   this.$router.push({name:'home'})
    //   this.$router.push({name:'home',params:{id:'1111'}})
    // this.$router.push({name:'home',query:{id:'1111'}})
  },
};
</script>

<style  scoped>
.el-row {
  margin-bottom: 20px;
}
:last-child {
  margin-bottom: 0;
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #99a9bf;
}
.bg-purple {
  background: #d3dce6;
}
.bg-purple-light {
  background: #e5e9f2;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>